package com.lagou.cluster.mapper;

import com.lagou.cluster.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @ProjectName: S2-2
 * @Title: UserMapper
 * @Package: com.lagou.cluster.mapper
 * @Description: 用户Mapper
 * @author: Ian
 * @date: 3/19/2021 11:23 AM
 * @version: V1.0.0
 * @Copyright:
 */
@Mapper
public interface UserMapper {
    /**
     * 通过用户名查询
     *
     * @param username 用户名
     * @return 返回用户信息
     */
    User findByName(String username);
}
